package com.situ.library.service;

import com.situ.library.pojo.entity.Book;
import com.situ.library.pojo.query.BookQuery;
import com.situ.library.util.PageInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface IBookService {

    PageInfo selectByPage(BookQuery bookQuery);

    void deleteById(int id);

    void deleteAll(String[] ids);

    void add(Book book);

    void update(Book book);

    Book selectById(int id);

    List<Book> selectAll();

    void exportExcel(HttpServletResponse resp);

    void importExcel(HttpServletRequest req);
}
